package pratice;

public class X2test1 {
    public static void main (String[] args) {
        X2Input X2Input=new X2Input();
        float value=X2Input.input();
        System.out.println("X2统计量计算得到的值为:" +value );

        GetX2Value GetX2Value=new GetX2Value() ;
        float X2Value[]=GetX2Value.readX2value();
        System.out.println("X2表对应X2较大值为:" + X2Value[0]);
        System.out.println("X2表对应X2较小值为:" + X2Value[1]);
        if(value>X2Value[0]||value<X2Value[1]) {
            System.out.println("拒绝原假设");
        }
        else{
            System.out.println("接受原假设");
        }

    }

}
